<template>
  <el-form class="right-event-packet">
    <dropdown-normal label="类型" :valLists="PACKET_TYPE" v-model="wbData.type" @change="onUpdateWbComponent"></dropdown-normal>
    <input-normal label="红包eid" v-model="wbData.eid" @change="onUpdateWbComponent"></input-normal>
    <input-normal label="短链" v-model="wbData.url" @change="onUpdateWbComponent"></input-normal>
    <input-normal label="gid" v-model="wbData.gid" @change="onUpdateWbComponent"></input-normal>
    <input-normal label="运营主体uid" v-model="wbData.send_uid" @change="onUpdateWbComponent"></input-normal>
    <el-form-item label="开始时间">
      <el-date-picker format="YYYY-MM-DD HH:mm:ss" v-model="wbData.starttime" type="datetime" placeholder="选择日期时间" @change="onUpdateWbComponent"></el-date-picker>
    </el-form-item>
    <el-form-item label="截止时间">
      <el-date-picker format="YYYY-MM-DD HH:mm:ss" v-model="wbData.endtime" type="datetime" placeholder="选择日期时间" @change="onUpdateWbComponent"></el-date-picker>
    </el-form-item>
    <input-normal label="签名" v-model="wbData.sign" @change="onUpdateWbComponent"></input-normal>
    <dropdown-normal label="是否发博" :valLists="PACKET_PUSH_TYPE" v-model="wbData.share" @change="onUpdateWbComponent"></dropdown-normal>
  </el-form>
</template>

<!-- "type": "", //类型,下拉选择, 值为msg,self
"eid": "", //eid,文本
"url": "", //短链,文本
"gid": "", //gid,文本
"send_uid": "", //运营主体uid,文本
"starttime": "", //开始时间,申请sign的时候用,只做备注记录,对前端没实际作用
"endtime": "", //结束时间,申请sign的时候用,只做备注记录,对前端没实际作用
"sign": "", //签名,文本,需要后端去生成
"share": "", //拆包时是否发博,值为y或者n,下拉 -->

<script>
import InputNormal from '@/views/components/edit/InputNormal.vue'
import DropdownNormal from '@/views/components/edit/DropdownNormal.vue'
import { PACKET_TYPE, PACKET_PUSH_TYPE } from '@/common/data-drive-ui'

import { addUtils } from '@/views/js/add-utils'

  export default {
    mixins: [addUtils],
    setup () {
    return {
      PACKET_PUSH_TYPE,
      PACKET_TYPE
    }
  },
    components: {
      InputNormal,
      DropdownNormal
    },
  }
</script>